import { VuexModule, Module, Action, Mutation, getModule } from 'vuex-module-decorators'
import { commonAction } from '@/utils/common'
import store from '@/store'
@Module({ dynamic: true, name: 'km', store, namespaced: false })
class Km extends VuexModule {
  public clickNode = {} // 当前点击数节点信息
  @Mutation
  public setClickNode (node: object) {
    this.clickNode = node
  }

  @Action
  public async KmCommonAction (parame: object) {
    return commonAction(parame).then(resp => {
      return resp
    })
  }
}

export const KmModule = getModule(Km)
